package com.tencent.wxcloudrun.vo.response.user;

import com.tencent.wxcloudrun.domain.TUserAddress;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author ZhaoZiYin
 * @Date 2025/4/22
 * @Description 查询用户收货地址请求出参
 */
@Data
@ApiModel(value = "UserQueryAddressResVo", description = "查询用户收货地址请求出参")
public class UserQueryAddressResVo {

    @ApiModelProperty("收货人")
    private String receUserName;

    @ApiModelProperty("收货手机号码")
    private String receUserPhone;

    @ApiModelProperty("省份")
    private String provinceName;

    @ApiModelProperty("城市")
    private String cityName;

    @ApiModelProperty("区/县")
    private String countyName;

    @ApiModelProperty("街道/镇")
    private String streetName;

    @ApiModelProperty("详细地址")
    private String detailInfo;

    @ApiModelProperty("邮编")
    private String postalCode;

    public void build(TUserAddress userAddress) {
        this.setReceUserName(userAddress.getReceUserName());
        this.setReceUserPhone(userAddress.getReceUserPhone());
        this.setProvinceName(userAddress.getProvinceName());
        this.setCityName(userAddress.getCityName());
        this.setCountyName(userAddress.getCountyName());
        this.setStreetName(userAddress.getStreetName());
        this.setDetailInfo(userAddress.getDetailInfo());
        this.setPostalCode(userAddress.getPostalCode());
    }

}
